home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 33
/
Volume 33 - JOGO DISK .iso
/
Games
/
qbear.swf
/
scripts
/
DefineSprite_171
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-01-15
|
628b
|
34 lines
ghostbearX = getProperty("/bear/ghost", _X);
ghostbearY = getProperty("/bear/ghost", _Y);
blutoX = _X;
blutoY = _Y;
if(blutoX >= ghostbearX - "20" and ghostbearX + "20" >= blutoX and blutoY >= ghostbearY - "10" and ghostbearY + "10" >= blutoY)
{
tellTarget("/ball")
{
stop();
}
tellTarget("/ball/ball2")
{
stop();
}
tellTarget("/balla")
{
stop();
}
tellTarget("/balla/ball2")
{
stop();
}
tellTarget("/bluto")
{
stop();
}
tellTarget("/collision")
{
gotoAndStop("hit");
play();
}
gotoAndStop(3);
}